<?php
/**
 * The SIDN EPP Result object
 *
 * <Insert random introduction here...>
 *
 *
 *
 * @author Ralph de Boom <php5-sidnepp@mijndomein.nl>
 * @author Peter Keizer <php5-sidnepp@mijndomein.nl>
 * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU Public License v3
 * @copyright http://www.mijndomein.nl/
 * @version 0.5
 * @link http://php5-sidnepp.svn.sourceforge.net/viewvc/php5-sidnepp/trunk/dev/docs/index.html
 * @see http://php5-sidnepp.svn.sourceforge.net/viewvc/php5-sidnepp/trunk/dev/docs/php5-sidnepp/SidnContactInfoResult.html
 * @package php5-sidnepp
 */

class SidnContactInfoResult extends SidnEppResult
{
	/**
	 * Holds the contact info object
	 * @var SidnContactInfo
	 */
	private $contact;
	/**
	 *
	 * @param string $status
	 * @param int $code
	 * @param string $message
	 * @param SidnContact $contact
	 */
	public function  __construct($status, $code, $message, SidnContact $contact = null)
	{
		$this->setStatus($status);
		$this->setStatusMessage($message);
		$this->setCode($code);
		if ($contact)
		{
			$this->setContact($contact);
		}
	}
	/**
	 * Sets the contact object
	 * @param SidnContact $contact
	 * @return void
	 */
	public function setContact(SidnContact $contact)
	{
		$this->contact = $contact;
	}
	/**
	 * Gets the contact
	 * @return SidnContact
	 */
	public function getContact()
	{
		return $this->contact;

	}
}


